package com.ekuaitu.kuaitu.bean;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by Michael Pi on 2016/9/28.
 */
public class MyCouponBean {


    /**
     * status : 200
     * message : 成功
     * debug : null
     * attachment : {"models":[{"couponId":62,"denomination":999.99,"title":"9999","content":"99999","startDate":1478515560000,"endDate":1480416363000,"type":0}],"passCounts":0,"counts":1,"usedCounts":0}
     */

    @SerializedName("status")
    private int status;
    @SerializedName("message")
    private String message;
    @SerializedName("debug")
    private Object debug;
    /**
     * models : [{"couponId":62,"denomination":999.99,"title":"9999","content":"99999","startDate":1478515560000,"endDate":1480416363000,"type":0}]
     * passCounts : 0
     * counts : 1
     * usedCounts : 0
     */

    @SerializedName("attachment")
    private AttachmentBean attachment;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getDebug() {
        return debug;
    }

    public void setDebug(Object debug) {
        this.debug = debug;
    }

    public AttachmentBean getAttachment() {
        return attachment;
    }

    public void setAttachment(AttachmentBean attachment) {
        this.attachment = attachment;
    }

    public static class AttachmentBean {
        @SerializedName("passCounts")
        private int passCounts;
        @SerializedName("counts")
        private int counts;
        @SerializedName("usedCounts")
        private int usedCounts;
        /**
         * couponId : 62
         * denomination : 999.99
         * title : 9999
         * content : 99999
         * startDate : 1478515560000
         * endDate : 1480416363000
         * type : 0
         */

        @SerializedName("models")
        private List<ModelsBean> models;

        public int getPassCounts() {
            return passCounts;
        }

        public void setPassCounts(int passCounts) {
            this.passCounts = passCounts;
        }

        public int getCounts() {
            return counts;
        }

        public void setCounts(int counts) {
            this.counts = counts;
        }

        public int getUsedCounts() {
            return usedCounts;
        }

        public void setUsedCounts(int usedCounts) {
            this.usedCounts = usedCounts;
        }

        public List<ModelsBean> getModels() {
            return models;
        }

        public void setModels(List<ModelsBean> models) {
            this.models = models;
        }

        public static class ModelsBean {

            /**
             * couponId : 362
             * denomination : 50
             * title : 5
             * content : 4
             * startDate : 1480586172000
             * endDate : 1485424574000
             * type : 1
             * couponStyle : 2
             * status : 10
             */

            @SerializedName("couponId")
            private int couponId;
            @SerializedName("denomination")
            private double denomination;
            @SerializedName("title")
            private String title;
            @SerializedName("content")
            private String content;
            @SerializedName("startDate")
            private long startDate;
            @SerializedName("endDate")
            private long endDate;
            @SerializedName("type")
            private int type;
            @SerializedName("couponStyle")
            private int couponStyle;
            @SerializedName("status")
            private int status;

            public int getCouponId() {
                return couponId;
            }

            public void setCouponId(int couponId) {
                this.couponId = couponId;
            }

            public double getDenomination() {
                return denomination;
            }

            public void setDenomination(double denomination) {
                this.denomination = denomination;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public long getStartDate() {
                return startDate;
            }

            public void setStartDate(long startDate) {
                this.startDate = startDate;
            }

            public long getEndDate() {
                return endDate;
            }

            public void setEndDate(long endDate) {
                this.endDate = endDate;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getCouponStyle() {
                return couponStyle;
            }

            public void setCouponStyle(int couponStyle) {
                this.couponStyle = couponStyle;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }
        }
    }
}
